import request from '@/utils/myrequest'
// 初始化信息
export function getInitList(kvs) {
  return request({
    url: '/config/TreeData/GetList',
    method: 'get',
    kvs
  })
}

// 查找二级菜单目录
export function getSecondaryList(kvs) {
  return request({
    url: '/config/TreeData/GetSecondaryList',
    method: 'get',
    kvs
  })
}

// 新增
export function doTreeAdd(kvs) {
  return request({
    url: '/config/TreeData/Add',
    method: 'POST',
    kvs
  })
}

// 获取详情
export function getAppendData(kvs) {
  return request({
    url: '/config/TreeData/GetAppendData',
    method: 'get',
    kvs
  })
}

// 删除
export function doDelete(kvs) {
  return request({
    url: '/config/TreeData/Delete',
    method: 'POST',
    kvs
  })
}
